<template>
  <div class="brand">
    <p class="flex_sb pd10">
      <span>品牌商直供</span>
      <span class="font-999">更多品牌商></span>
    </p>
    <ul>
      <li v-for="(item, index) in brandList" :key="index" @click="go(item.id)">
        <p class="flex_col">
          <span>
            <img :src="item.picUrl" />
          </span>
          <span >{{ item.name }}</span>
        </p>
      </li>
    </ul>
  </div>
</template>

<script>

export default {
  data() {
    return {
      brandList: [],
    };
  },methods:{
    go(id){
      this.$router.push({
        name:"brandDetail",
        query:{
          id:id
        }
      })
    }
  }
};
</script>

<style lang="scss" scoped>
.brand {
  background-color: white;
  margin-top: 20px;
  text-align: center;
  ul {
    display: flex;
    flex-wrap: wrap;
    li {
      width: 50%;
      img {
        width: 150px;
        height: 85px;
        margin-bottom: 8px;
      }
      span{
        margin-bottom: 8px;
      }
    }
  }
}
</style>